import { createSlice } from "@reduxjs/toolkit";

const mainSlice = createSlice({
  name: "main",
  initialState: {
    isCollapse: false,
  },
  reducers: {
    changeCollapse: (state, action) => {
      state.isCollapse = !state.isCollapse;
    },
  },
});

export const { changeCollapse } = mainSlice.actions;
export default mainSlice.reducer;
